/*
 * Copyright © 2017 eqxiu.com 北京中网易企秀科技有限公司  All rights reserved.
 */
package cn.hermit.data.json.factory;

import cn.hermit.core.IdentityOrderedMap;
import cn.hermit.data.json.model.JSONDocument;

import java.util.Map;

/**
 * A JSON Factory using {@link IdentityOrderedMap IdentityOrderedMap} as container of JSON Object and
 * ArrayList as container of JSON Array. It supports duplicated JSON Keys by order.
 * 
 * @author Jack Gao (Chinese name : GAO JIANGUO, Email : linux.gjg@gmail.com)
 * @date 27 Jun, 2014
 */
public class IdentityOrderedJSONFactory extends OrderedJSONFactory {

	/**
	 * Create a container of JSON Object using IdentityOrderedMap
	 * 
	 * @see IdentityOrderedMap IdentityOrderedMap
	 * @return
	 * 		a container of JSON Object
	 */
	@Override
	public Map<String, JSONDocument> createObjectContainer() {
		return new IdentityOrderedMap<String, JSONDocument>();
	}

}